import java.awt.event.*;
import java.awt.*;

public class ScrollListener implements MouseMotionListener{


  public void mouseDragged(MouseEvent e){

    System.out.println("mouse dragged");
  }

  public void mouseMoved(MouseEvent e)
  {

      System.out.println("mouse moved  "+e.getX() + "   "+e.getY());

  }




}